import { _get, _post } from "../../utils/request";
import util from "../../utils/util";
const app = getApp();
Page({
    data: {
        fubiao: [],
    },
    fujian() {
        dd.navigateTo({
            url: '/pages/result_fujian/result_fujian'
        })
    },
    getFubiao() {
        _get(`/testResult/selectTestResultByVbizId`, { vbizId: app.vbizId }).then(
            res => {
                let arr = res.data.attach;
                arr.forEach(item => {
                    item.content = JSON.parse(item.content)
                })
                console.log('附表详情', arr);

                this.setData({
                        fubiao: arr,
                        title: res.data.title
                    })
                    // let list = res.data.attach.map((item) => {
                    //     return JSON.parse(item.content)
                    // })
                    // console.log('list', list);
            }
        )
    },
    onLoad() {
        dd.setNavigationBar({
            title: "附表",
            backgroundColor: "#142e4f",
            success() {},
            fail() {},
        });
        this.getFubiao()
    },
});